home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-02-12 | 2.7 KB | 65 lines | [TEXT/NJML] |
- SMLeNJ How To Build
- 12Feb93 e
-
- This is a description of how to build SML/NJ 0.93 on the Apple Macintosh.
-
- You must be running MacOS System 7, use 32 bit addressing, and have at
- least 16Mbytes of memory in your Mac to build SML/NJ. The Mac must also
- have an FPU and the processor must be a M68020, M68030, or M68040.
-
- You should have the AT&T distribution with:
- all the files from 93.src.tar.Z installed;
- also the 93.mo.m68.tar.Z files should be located in the directory src:mo:
-
- There are some Mac specific files in the src: and src:runtime: directories;
- all of the files in the src:runtime:mac: directory are Mac specific.
-
- The Mac specific files in src: are:
- src:ANSI-ML
- src:SMLeNJ.π
- src:SMLeNJ.π.rsrc
-
- Then to build SML/NJ for the Mac:
-
- 1) launch ThinkC (5.04 or better) with the SMLeNJ.π project.
- Choose Build Application… from the Project menu. Save the application
- in the src: directory with an appropriate name. Quit ThinkC.
-
- 2) Verify that the application's preferred size is at least 12M bytes,
- and that at least 12M bytes are free in the Mac. [You can find the
- application's preferred size using Get Info in the File menu of the
- Finder. You can determine how much memory is available using About
- This Macintosh… in the Apple menu.]
-
- 3) Launch the newly built application; you will be presented with a
- dialog box expecting a command line, type: "-r 3 IntM68" and <return>.
- The mo files will be loaded.
-
- 4) You may now save the SML image as a separate file to be imported later,
- or you may save it into the newly built application. To save it into the
- application, in this example named SMLeNJ93, type:
- if exportML("•SMLeNJ93") then print("Whoopee!\n") else print("\n");
- To save the image into its own file, use a different filename.
-
- If you have already built a Mac image into a separate file, step 3 above
- may be replaced by:
- 3) Launch the newly built application; you will be presented with a
- dialog box expecting a command line, type: "-i <filename>" and <return>.
- The image file will be loaded.
-
- Relaunching the newly built application will automatically load the image
- exported into the application.
-
- You may also force such an application to accept a command line by
- holding down the <option> key while the application is being launched.
- At this point you may continue with step 3 above.
-
- Developers: it is also possible to run with the ThinkC Debugger. In
- step 1 above, select Use Debugger, and use Run instead of Build
- Application. You will be presented with a command line dialog box.
- Proceed as above (step 3) or use the other command line options.
-
- The file src:ANSI-ML is a ThinkC project based on Semantec's ANSI-32
- project. The sources are not included since they are owned by Semantec.
- You already have the sources if you have ThinkC 5.04.
-